package com.example.demo.data.repository

import com.example.demo.data.Taco
import org.springframework.data.domain.Page
import org.springframework.data.domain.PageRequest
import org.springframework.data.jpa.repository.Query
import org.springframework.data.repository.CrudRepository

interface TacoRepository: CrudRepository<Taco, Long> {

    @Query(value = "select t from Taco t")
    fun findAll(pageRequest: PageRequest): Page<Taco>
}